//
//  CHttpManager.h
//  FMMarket
//
//  Created by zqt on 2020/8/4.
//  Copyright © 2020 dangfm. All rights reserved.
//

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef void(^successResultBlock)(NSDictionary*reslutDic);
typedef void(^faildResultBlock)( NSError* _Nullable error, NSDictionary * _Nullable resultDic);
@interface CHttpManager : NSObject
@property (nonatomic,copy)successResultBlock successBolck;
@property (nonatomic,copy)faildResultBlock failedBlock;

//post 请求
+(void)requestPost:(NSString *)url andParam:(NSDictionary *)paramDic andSuccess:(successResultBlock)success andFailed:(faildResultBlock)failed;
+(void)requestGET:(NSString *)url andParam:(NSDictionary *)paramDic andSuccess:(successResultBlock)success andFailed:(faildResultBlock)failed;
@end

NS_ASSUME_NONNULL_END
